<table class="table table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>预约活动名称</th>
			<th>预约开始时间</th>
			<th>预约结束时间</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="moduleSubscribeLists" id="vo">
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.name}</td>
				<td><notempty name="vo.start_time">{$vo.start_time|date="Y-m-d H:m", ###}</notempty></td>
				<td><notempty name="vo.end_time">{$vo.end_time|date="Y-m-d H:m", ###}</notempty></td>
				<td class="status">{$vo["status"]?"启用":"停用"}</td>
				<td>
					<a class="btn btn-primary btn-xs" href="__CONTROLLER__/modify/id/{$vo.id}">设置预约内容</a>
					<a class="btn btn-info btn-xs" href="__CONTROLLER__/userList/vid/{$vo.id}">查看预约用户</a>
					<a class="btn btn-info btn-xs" data-url="{$vo.url}" id="copy-paste">复制链接地址</a>
					<a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="移除中……" data-action-url="__CONTROLLER__/removePost">移除</a>
					<a class="btn btn-info btn-xs action-status" data-action-id="{$vo.id}" data-action-txt="执行中……" data-action-status="{$vo.status}" data-action-status-txt="启用 停用" data-action-url="__CONTROLLER__/setStatusPost">{$vo["status"]?"停用":"启用"}</a>
				</td>
			</tr>
		</volist>
	</tbody>
</table>
<div class="pagination">{$pagination}</div>

<script type="text/javascript" src="__PUBLIC__/Style/Common/js/ZeroClipboard.js"></script>
<script type="text/javascript">
	$(function(){
		$("tr #copy-paste").each(function(){
			$().copyPaste({
				text: $(this).attr("data-url"),
				id: $(this).get(0)
			});
		});
	});
</script>